package com.pwt.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.pwt.annotation.Update;
import com.pwt.model.SimpleAttributeModel;
import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;

import lombok.EqualsAndHashCode;
import lombok.Data;

import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.List;


/**
 * ZzWatchCharts
 *
 * @author auto generated
 * @date 2021-10-13 17:26:23
 */
@Data
@Entity
@NoArgsConstructor
@Table(name = "[zz_watch_charts]")
@Schema(name = "ZzWatchCharts")
public class ZzWatchCharts implements Serializable {

	@Id
	@Column(name = "id")
	@Schema(description = "ID")
	protected String id;

	/**
	 * k1000
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k1000",description = "顺序的零件号")
	@Column(name = "k1000", nullable = true)
	@JsonIgnore
	private Integer k1000;

	/**
	 * k2000
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k2000",description = "顺序的被测参数号")
	@Column(name = "k2000", nullable = true)
	@JsonIgnore
	private Short k2000;

	/**
	 * k0000
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k0000",description = "顺序的测试编号")
	@Column(name = "k0000", nullable = true)
	@JsonIgnore
	private Integer k0000;

	/**
	 * k0001
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k0001",description = "测试值")
	@Column(name = "k0001", nullable = true)
	@JsonIgnore
	private Double k0001;

	/**
	 * k0004
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k0004",description = "测试时间")
	@Column(name = "k0004", nullable = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private java.util.Date k0004;

	/**
	 * k0008
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k0008",description = "工序号")
	@Column(name = "k0008", nullable = true)
	@JsonIgnore
	private Integer k0008;

	/**
	 * k0010
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k0010",description = "机器编号")
	@Column(name = "k0010", nullable = true)
	private Integer k0010;

	/**
	 * k2101
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k2101",description = "名义值")
	@Column(name = "k2101", nullable = true)
	@JsonIgnore
	private Double k2101;

	/**
	 * k2104
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k2104",description = "公差")
	@Column(name = "k2104", nullable = true)
	@JsonIgnore
	private Integer k2104;

	/**
	 * k2110
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k2110",description = "下限")
	@Column(name = "k2110", nullable = true)
	@JsonIgnore
	private Double k2110;

	/**
	 * k2111
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "k2111",description = "上限")
	@Column(name = "k2111", nullable = true)
	@JsonIgnore
	private Double k2111;

	/**
	 * rIGHTSTATUS
	 * nullable : false
	 * default  : null
	 */
	@Schema(name = "rIGHTSTATUS",description = "统计状态")
	@Column(name = "RIGHT_STATUS", nullable = true, length = 3)
	@JsonIgnore
	private String rIGHTSTATUS;

	/**
	 * bOTTOMSTATUS
	 * nullable : false
	 * default  : null
	 */
	@Schema(name = "bOTTOMSTATUS",description = "图例状态")
	@Column(name = "BOTTOM_STATUS", nullable = true, length = 8)
	@JsonIgnore
	private String bOTTOMSTATUS;

	/**
	 * sIGMA
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "sIGMA",description = "sigma")
	@Column(name = "SIGMA", nullable = true)
	@JsonIgnore
	private Double sIGMA;

	@Schema(name = "k1002",description = "零件名称")
	@Column(name = "k1002", nullable = true)
	private String k1002;

	@Schema(name = "k2002",description = "被测参数名称")
	@Column(name = "k2002", nullable = true)
	@JsonIgnore
	private String k2002;


	@Schema(name = "range",description = "前一个测试值")
	@Column(name = "range", nullable = true)
	@JsonIgnore
	private Double range;

	@Schema(name = "rangeAvg",description = "极差平均值")
	@Column(name = "rangeAvg", nullable = true)
	@JsonIgnore
	private Double rangeAvg;

	@Schema(name = "zAvg",description = "平均值")
	@Column(name = "zAvg", nullable = true)
	@JsonIgnore
	private Double zAvg;

	@Schema(name = "k0014",description = "零件编号")
	@Column(name = "k0014", nullable = true)
	private String k0014;

	@Schema(name = "color",description = "模块颜色")
	private String color= "green";

	@Schema(name = "attribute",description = "图例集合")
	private Integer  attribute;

}
